<?php
/**
 * Created by PhpStorm.
 * User: jolly
 * Date: 14-5-26
 * Time: 下午2:08
 */
class ResultShow
{
    public static function show($model=null,$result_code=null)
    {
        if($model === 'success')
        {
            switch($result_code)
            {
                case '1':
                    return '绑定成功';
            }
        }elseif($model === 'error')
        {
            switch($result_code)
            {
                case '21323':
                    return '请求不合法';
                case '21325':
                    return 'Access Grant无效或过期';
                case '21326':
                    return '客户端没有权限';
                case '21327':
                    return 'token过期，请重试';
                case '21330':
                    return '用户授权失败，请重试！';
                case '21331':
                    return '服务暂时无法访问，请稍后再试！';
            }
        }
    }
}